<template>
  <div class="big">
    <div class="container">
      <div class="content">
        <img class="picture" src="../assets/image/avatar.png" alt="用户头像" />
        <div class="username">醉笙梦</div>
        <div class="actions">
          <button class="logout-btn" @click="$router.push('/login')">退出</button>
          <a href="https://gitee.com/a2178858383/movie" target="_blank">
            <button class="gitee-btn">代码仓库</button>
          </a>
        </div>
      </div>
    </div>
  </div>
</template>

<style scoped>
.big {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  text-align: center;
}

.picture {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.username {
  font-size: 24px;
  color: #161515;
}

.actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;

  align-items: center;
}

.logout-btn,
.gitee-btn {
  padding: 10px 20px;
  margin: 0 10px;
  border: none;
  border-radius: 5px;
  font-size: 20px;
  cursor: pointer;
}

.logout-btn {
  background-color: #ff6347;
  color: #fff;
}

.gitee-btn {
  background-color: #4682b4;
  color: #fff;
}

.actions a {
  text-decoration: none;
  color: inherit;
}
</style>
